class Person{
    public int age;
    public String name="zhangsan";
    public void eat(){
        System.out.println("吃饭");
    }

}

public class LeiStudy {
    /*public static void main(String[] args) {
        Person person1=new Person();//实例化对象，类=类型，类型 类型名=new 类型（）
        Person person2=new Person();
        person1=person2;//把person2的值给了person1，即把person1指向了person2的类
        System.out.println();
    }*/
    public static void fun(){
        System.out.println("hello");
    }

}
